package com.enhe.gck.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.kuangkie.carbon.record.Updatable;
import com.kuangkie.carbon.record.annotation.Attribute;
import com.kuangkie.carbon.record.annotation.CarbonRecord;
import com.kuangkie.carbon.record.annotation.RecordCode;
import com.kuangkie.carbon.uid.model.UidManager;
import lombok.Data;

// 编织袋使用记录临时表
@Data
@CarbonRecord("hwane21450")
public class WovenBagUseRecordTemp implements Updatable {
    @JSONField(name = "唯一编码")
    @RecordCode
    private Long id = UidManager.getLongUID();

    // 订单ID
    @JSONField(name = "订单ID")
    @Attribute("hwan21452")
    private Long orderId;

    // 数量
    @JSONField(name = "数量")
    @Attribute("hwan21453")
    private Integer number;

    // 编织袋管理ID
    @JSONField(name = "编织袋管理ID")
    @Attribute("hwan21454")
    private Long wovenBagId;

    @Override
    public String getRecordCode() {
        return this.id == null ? null : this.id.toString();
    }
}